﻿Imports DAO
Imports DTO
Public Class LOAISANHBUS
    Private dao As New LOAISANHDAO()

    Public Function load_loaisanh() As DataTable
        Return dao.loadloaisanh()
    End Function
    Public Function load_dssanh() As DataTable
        Return dao.loaddssanh()
    End Function
    Public Function them_loaisanh(ByVal dto As LOAISANHDTO) As Boolean
        If dao.them_LOAISANH(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function

    Public Function capnhat_loaisanh(ByVal dto As LOAISANHDTO) As Boolean
        If dao.capnhat_loaisanh(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function

    Public Function xoa_loaisanh(ByVal dto As LOAISANHDTO) As Boolean
        If dao.xoa_LOAISANH(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function


End Class
